import request from "../utils/request";

/*登录获取token*/
export function token(param,head){
    return request({
        url: '/auth-service/auth/token',
        headers: head,
        method: 'post',
        params:param
    })
}
/*获取验证码*/
export function captcha(){
    return request({
        url: '/auth-service/auth/captcha',
        method: 'get'
    })
}
/*发送邮件验证码*/
export function sendEmailCaptcha(target){
    return request({
        url: '/auth-service/auth/email/captcha',
        method: 'get',
        params: {
            target:target
        }
    })
}

